package dao;

import bean.Category;
import bean.User;

import java.sql.SQLException;
import java.util.ArrayList;

public interface CategoryDao {
    public boolean addCategory(Category category);/*添加目录*/
    public boolean updateCategory(Category category);/*修改目录*/
    public boolean deleteCategory(int id);/*删除目录*/
    public boolean getCategory();/*获取单个目录*/
    public ArrayList<Category> getCategories(User user) throws SQLException;/*获取用户全部目录*/
}
